import React from 'react';
import ReactDOM from 'react-dom';
import Router from './router';
// Provider:提供数据源的
import {Provider} from 'react-redux';
import configureStore from './redux/store/configureStore';
import registerServiceWorker from './registerServiceWorker';
const store = configureStore();
ReactDOM.render(
    <Provider store={store}>
        <Router />
    </Provider>
    , document.getElementById('root'));
registerServiceWorker();

if (module.hot) {
    module.hot.accept()
}
